package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.RecordFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

@Component
public class RecordFallback implements RecordFeign {
    @Override
    public ResultModel call(RecordCallRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel consult(RecordConsultRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<RecordCollectionVo> collection(RecordCollectionDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<RecordCollectListVo> collectList(RecordCollectListDto request) {
        return ResultModel.faultTolerant();
    }
}
